package com.tang.h2_demo.config;

import lombok.extern.slf4j.Slf4j;
import org.springframework.beans.factory.DisposableBean;
import org.springframework.beans.factory.InitializingBean;
import org.springframework.stereotype.Component;

@Slf4j
@Component
public class TestDisposableBean implements DisposableBean {


    @Override
    public void destroy() throws Exception {
        log.info("TestDisposableBean 已经准备死掉了！！！");
    }
}
